import 'package:fluro/fluro.dart';
import 'package:fluro/src/router.dart';
import 'package:flutter_shop/pages/details_page.dart';
import 'package:flutter_shop/routers/router_init.dart';

class DatailsRouter implements IRouterProvider{

  static String detailsPage='/detailsPage';

  @override
  void initRouter(Router router) {
    // TODO: implement initRouter
    router.define(detailsPage, handler: Handler(handlerFunc: (_,params){
      String goodsId=params['goodsId'].first;
      print('====================='+goodsId);
      return DetailsPage(goodsId: goodsId,);
    }));
  }

}